#ifndef __httpspeed_tactics_h__
#define __httpspeed_tactics_h__ 1
#include "sys.h"
#include "cJSON.h"
typedef struct httpspeedTactics{
    char urls[0];
    int totalTime;
    int ignoreTime;
    int threads;
    char businessTag[64];
    char kafkaTopic[64];
    TAILQ_ENTRY(httpspeedTactics) entry;
}httpspeedTactics_t;
TAILQ_HEAD(httpspeedTactics_head, httpspeedTactics);

typedef struct{
    char *taskId;
    char *version;
    char *kafka_url;
    int count;
    struct httpspeedTactics_head down_head, up_head;
    cJSON *result;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
}httpspeed_tactics_t;

void* do_httpspeed_tactics(void* arg, char *nodeUrl, char *probeId);
#endif